Update Solaris balloon ioctl value
authorKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 08:18:42 +0000 (09:18 +0100)
committerKeir Fraser <keir@xensource.com>
Fri, 15 Jun 2007 08:18:42 +0000 (09:18 +0100)
The balloon ioctl value should use a 32-bit value instead of a 16-bit
value to distinguish itself from other ioctls.

Signed-off-by: Ryan Scott <ryan.scott@sun.com>
tools/python/xen/xend/osdep.py

index b3abbf782b6909f07541320aea2b223ec1313507..3dc343385ea34f4f4c21c0a3d576020f43fc26c2 100644 (file)
@@ -65,11 +65,11 @@ def _solaris_balloon_stat(label):
     import fcntl
     import array
     DEV_XEN_BALLOON = '/dev/xen/balloon'
-    BLN_IOCTL_CURRENT = 0x4201
-    BLN_IOCTL_TARGET = 0x4202
-    BLN_IOCTL_LOW = 0x4203
-    BLN_IOCTL_HIGH = 0x4204
-    BLN_IOCTL_LIMIT = 0x4205
+    BLN_IOCTL_CURRENT = 0x42410001
+    BLN_IOCTL_TARGET = 0x42410002
+    BLN_IOCTL_LOW = 0x42410003
+    BLN_IOCTL_HIGH = 0x42410004
+    BLN_IOCTL_LIMIT = 0x42410005
     label_to_ioctl = { 'Current allocation'    : BLN_IOCTL_CURRENT,
                        'Requested target'      : BLN_IOCTL_TARGET,
                        'Low-mem balloon'       : BLN_IOCTL_LOW,